.class final Lcom/tendcloud/tenddata/ec$a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/tendcloud/tenddata/ec;


# direct methods
.method private constructor <init>(Lcom/tendcloud/tenddata/ec;)V
    .locals 0

    iput-object p1, p0, Lcom/tendcloud/tenddata/ec$a;->a:Lcom/tendcloud/tenddata/ec;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/tendcloud/tenddata/ec;Lcom/tendcloud/tenddata/ec$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/ec$a;-><init>(Lcom/tendcloud/tenddata/ec;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iget-object v0, p0, Lcom/tendcloud/tenddata/ec$a;->a:Lcom/tendcloud/tenddata/ec;

    invoke-static {v0}, Lcom/tendcloud/tenddata/ec;->a(Lcom/tendcloud/tenddata/ec;)Ljava/util/Map;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/tendcloud/tenddata/ec$a;->a:Lcom/tendcloud/tenddata/ec;

    invoke-static {v0}, Lcom/tendcloud/tenddata/ec;->a(Lcom/tendcloud/tenddata/ec;)Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_0
    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/tendcloud/tenddata/ec$c;

    iget-wide v6, v0, Lcom/tendcloud/tenddata/ec$c;->a:J

    sub-long v6, v2, v6

    const-wide/16 v8, 0x3e8

    cmp-long v5, v6, v8

    if-lez v5, :cond_0

    sget-object v5, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    iget-object v6, v0, Lcom/tendcloud/tenddata/ec$c;->b:Ljava/lang/String;

    const-string v7, ""

    iget-object v0, v0, Lcom/tendcloud/tenddata/ec$c;->c:Ljava/util/Hashtable;

    invoke-static {v5, v6, v7, v0}, Lcom/tendcloud/tenddata/TCAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V

    invoke-interface {v4}, Ljava/util/Iterator;->remove()V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/tendcloud/tenddata/ec$a;->a:Lcom/tendcloud/tenddata/ec;

    invoke-static {v0}, Lcom/tendcloud/tenddata/ec;->a(Lcom/tendcloud/tenddata/ec;)Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/tendcloud/tenddata/ec$a;->a:Lcom/tendcloud/tenddata/ec;

    invoke-static {v0}, Lcom/tendcloud/tenddata/ec;->b(Lcom/tendcloud/tenddata/ec;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, p0, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_2
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method
